import instance from '@/api/request'

// export const getHotGoods = () => {
//   return instance({
//     method: 'post',
//     url: 'http://192.168.2.37/Index/pick_up_order/pickOrderList'
//   })
// }
// 创建提货订单
export const setPickAddOrder = order => {
  return instance({
    method: 'post',
    url: 'pick_up_order/pickAddOrder',
    data: order
  })
}

// 提货订单列表

export const getAllOrder = (status, search) => {
  return instance({
    method: 'post',
    url: 'pick_up_order/pickOrderList',
    data: {
      status: status || 0,
      search: search || ''
    }
  })
}

// findOrderInfo   get  请求
